import request from "@/config/axios";


//租户列表/sys/tenant/queryList //北京租户
export const tenantqueryList = (data) => request({
    url: `http://localhost:8080/jeecg-boot/sys/tenant/queryList`,
    method: "GET",
    data
  })
  //添加租户接口/sys/tenant/add
  export const tenantadd = (data) => request({
    url: `http://localhost:8080/jeecg-boot/sys/tenant/add`,
    method: "POST",
    data
  })
  //编辑租户接口/sys/tenant/edit
  export const tenantedit = (data) => request({
    url: `http://localhost:8080/jeecg-boot/sys/tenant/edit`,
    method: "PUT",
    data
  })
  //删除用户接口/sys/tenant/delete
  export const tenantdelete = (data) => request({
    url: `http://localhost:8080/jeecg-boot/sys/tenant/delete?id=${data.id}`,
    method: "DELETE",
    data
  })
  //批量删除用户接口/sys/tenant/deleteBatch
  export const tenantdeleteBatch = (data) => request({
    url: `http://localhost:8080/jeecg-boot/sys/tenant/deleteBatch?ids=${data.ids}`,
    method: "DELETE",
    data
  })

  //租户列表/sys/tenant/list
export const tenantlist = (data) => request({
    url: `http://localhost:8080/jeecg-boot/sys/tenant/list?pageNo=${data.pageNo}&pageSize=${data.pageSize}`,
    methods: 'get',
    data
  })